package lib.http;

@:jsRequire("http", "Server")
/**
 * http库
 */
extern class Http
{
	/**
	 * 创建一个httpSever
	 * @param	port 端口
	 * @param	callback 回调(req:lib.Request)
	 */
	public function new(port:Int, callback:Dynamic);
	/**
	 * 启动监听
	 */
	public function run() :Void;
}

